#!/bin/bash

chip_arch=$(uname -m)

sudo cp ./lib/$chip_arch/librcutils.so /opt/ros/humble/lib/
ret=$?
if [ $ret -ne 0 ]; then
    echo "Failed to copy librcutils.so"
    exit $ret
else 
    echo "librcutils.so copied successfully"
fi
